package com.innovation.chengzhangriji.daogenerator.gen;

import de.greenrobot.daogenerator.DaoGenerator;
import de.greenrobot.daogenerator.Entity;
import de.greenrobot.daogenerator.Schema;

public class ChZhRJDao_Generator {

    /* 2015-01-14 12:36 */
    private static final int VERSION = 13;

    /*BABY_AND_PARENT*/

    private static final String BABY_AND_PARENT = "BabyAndParent";

    private static final String BABY_ID = "babyID";

    private static final String PARENT_ID = "parentID";

    private static final String PERMISSION = "permission";

    private static final String RANGE = "range";

    /*BABY*/

    private static final String BABY = "Baby";

    private static final String NOTE_NAME = "noteName";

    private static final String NAME = "name";

    private static final String STATE = "state";

    private static final String PARENT_NAME = "parentName";

    private static final String GENDER = "gender";

    private static final String IMAGE_URL = "imageUrl";

    private static final String BIRTHDAY = "birthday";

    private static final String LAST_DATE = "lastDate";

    private static final String DUE_DATE = "dueDate";

    private static final String UPDATE_TIME = "updateTime";

    /*MESSAGE*/

    private static final String MESSAGE = "Message";

    /*TIMELINE_SERVER_TIME*/

    private static final String TIMELINE_SERVER_TIME = "TimelineServerTime";

    private static final String SYNC_TS = "syncTS";

    /*TIMELINE_LAST_SERVER_TIME*/

    private static final String TIMELINE_LAST_SERVER_TIME = "TimelineLastServerTime";

    private static final String LAST_NUMBER = "lastNumber";

    /*TIMELINE*/

    private static final String TIMELINE = "Timeline";

    private static final String UUID = "uuid";

    private static final String USER_ID = "userID";

    private static final String ROLE = "role";

    private static final String CREATE_TS = "createTS";

    private static final String CHANGE_TS = "changeTS";

    private static final String IS_DELETE = "isDelete";

    private static final String IS_REMOTE_DELETE = "isRemoteDelete";

    private static final String IS_REMOTE_EXIST = "isRemoteExist";

    private static final String IS_LOCAL_EXIST = "isLocalExist";

    private static final String IS_SYNC_ERROR = "isSyncError";

    private static final String IS_UPLOAD_ERROR = "isUploadError";

    private static final String TYPE = "type";

    /*TIMELINE_TEXT*/

    private static final String TIMELINE_TEXT = "TimelineText";

    private static final String TEXT = "text";

    /*TIMELINE_PHOTO*/

    private static final String TIMELINE_PHOTO = "TimelinePhoto";

    private static final String THEME = "theme";

    /*TIMELINE_PHOTO_URL*/

    private static final String TIMELINE_PHOTO_URL = "TimelinePhotoUrl";

    // private static final String THUMB_URL = "thumbUrl";

    private static final String URL = "url";

    private static final String LOCAL_THUMB_URL = "localThumbUrl";

    private static final String LOCAL_URL = "localUrl";

    private static final String NUMBER = "number";

    /*TIMELINE_AUDIO*/

    private static final String TIMELINE_AUDIO = "TimelineAudio";

    /*TIMELINE_AUDIO_URL*/

    private static final String TIMELINE_AUDIO_URL = "TimelineAudioUrl";

    private static final String LENGTH = "length";

    /*TIMELINE_VIDEO*/

    private static final String TIMELINE_VIDEO = "TimelineVideo";

    /*TIMELINE_VIDEO_SCREENSHOT_URL*/

    private static final String TIMELINE_VIDEO_SCREENSHOT_URL = "TimelineVideoScreenshotUrl";

    /*TIMELINE_VIDEO_URL*/

    private static final String TIMELINE_VIDEO_URL = "TimelineVideoUrl";

    /*TIMELINE_MILESTONE*/

    private static final String TIMELINE_MILESTONE = "TimelineMilestone";

    private static final String MILESTONE_ID = "milestoneID";

    private static final String MILESTONE = "milestone";

    /*TIMELINE_DELETE*/

    private static final String TIMELINE_DELETE = "TimelineDelete";

    /*------------------------公共数据-------------------------*/

    /*PUBLIC_PHOTO_THEME*/

    private static final String PUBLIC_PHOTO_THEME = "PublicPhotoTheme";

    /*PUBLIC_MILESTONE*/

    private static final String PUBLIC_MILESTONE = "PublicMilestone";


    public static void main(String[] args) throws Exception {
        Schema schema = new Schema(VERSION, "com.innovation.chengzhangriji");
        addBabyAndParent(schema);
        addParent(schema);
        addBaby(schema);
        addMessage(schema);
        addTimeline(schema);
        addTimelineServerTime(schema);
        addTimelineLastServerTime(schema);
        addTimelineText(schema);
        addTimelinePhoto(schema);
        addTimelinePhotoUrl(schema);
        // addTimelineAudio(schema);
        addTimelineAudioUrl(schema);
        // addTimelineVideo(schema);
        addTimelineVideoScreenshotUrl(schema);
        addTimelineVideoUrl(schema);
        addTimelineMilestone(schema);
        addTimelineDelete(schema);
        addPublicPhotoTheme(schema);
        addPublicMilestone(schema);

        addDiscoverSyncTime(schema);
        addDiscoverSaveComment(schema);
        // addDiscoverSaveLike(schema);

        // 2015-11-24 11:35
        addDiscover(schema);
        addDiscoverPhoto(schema);
        new DaoGenerator().generateAll(schema, "./app/src-gen");
    }

    private static void addBabyAndParent(Schema schema) {
        Entity babyAndParent = schema.addEntity(BABY_AND_PARENT);
        babyAndParent.addIdProperty();
        babyAndParent.addIntProperty(BABY_ID);
        babyAndParent.addStringProperty(PARENT_ID);
        babyAndParent.addIntProperty(ROLE);
        babyAndParent.addIntProperty(PERMISSION);
        babyAndParent.addIntProperty(RANGE);
        babyAndParent.addIntProperty(NUMBER);
    }

    private static void addParent(Schema schema) {
        Entity parent = schema.addEntity("Parent");
        parent.addIdProperty();
        parent.addStringProperty("userId");
        parent.addIntProperty("babyId");
        parent.addIntProperty("type");
        parent.addIntProperty("parentId");
        parent.addStringProperty("user");
        parent.addStringProperty("name");
        parent.addStringProperty("phone");
        parent.addStringProperty("serverTS");
        parent.addStringProperty("message");
        parent.addStringProperty("path");
        parent.addStringProperty("nickName");
        parent.addIntProperty(ROLE);
        parent.addIntProperty(PERMISSION);
        parent.addIntProperty(RANGE);
    }

    private static void addBaby(Schema schema) {
        Entity baby = schema.addEntity(BABY);
        baby.addIdProperty();
        baby.addStringProperty(NOTE_NAME);
        baby.addIntProperty(BABY_ID);
        baby.addStringProperty(NAME);
        baby.addIntProperty(STATE);
        baby.addStringProperty(PARENT_NAME);
        baby.addIntProperty(GENDER);
        baby.addStringProperty(IMAGE_URL);
        baby.addLongProperty(BIRTHDAY);
        baby.addLongProperty(LAST_DATE);
        baby.addLongProperty(DUE_DATE);
        baby.addLongProperty(UPDATE_TIME);
    }

    private static void addMessage(Schema schema) {
        Entity message = schema.addEntity(MESSAGE);
        message.addIdProperty();
        message.addStringProperty(USER_ID);
        message.addIntProperty(BABY_ID);
        message.addLongProperty(SYNC_TS);
    }

    private static void addTimelineServerTime(Schema schema) {
        Entity timelineTime = schema.addEntity(TIMELINE_SERVER_TIME);
        timelineTime.addIdProperty();
        timelineTime.addIntProperty(BABY_ID);
        timelineTime.addLongProperty(SYNC_TS);
    }

    private static void addTimelineLastServerTime(Schema schema) {
        Entity timelineTime = schema.addEntity(TIMELINE_LAST_SERVER_TIME);
        timelineTime.addIdProperty();
        timelineTime.addIntProperty(BABY_ID);
        timelineTime.addStringProperty(UUID);
        timelineTime.addLongProperty(SYNC_TS);
        timelineTime.addLongProperty(CREATE_TS);
        timelineTime.addIntProperty(LAST_NUMBER);
    }

    private static void addTimeline(Schema schema) {
        Entity timeline = schema.addEntity(TIMELINE);
        timeline.addIdProperty();
        timeline.addIntProperty(BABY_ID);
        timeline.addStringProperty(UUID);
        timeline.addStringProperty(USER_ID);
        timeline.addStringProperty(ROLE);
        timeline.addIntProperty(STATE);
        timeline.addLongProperty(CREATE_TS);
        timeline.addLongProperty(CHANGE_TS);
        timeline.addIntProperty(IS_DELETE);
        timeline.addIntProperty(IS_REMOTE_DELETE);
        timeline.addIntProperty(TYPE);

        timeline.addIntProperty(IS_REMOTE_EXIST);
        timeline.addIntProperty(IS_LOCAL_EXIST);
        timeline.addIntProperty(IS_SYNC_ERROR);
        timeline.addIntProperty(IS_UPLOAD_ERROR);
    }

    private static void addTimelineText(Schema schema) {
        Entity timelineText = schema.addEntity(TIMELINE_TEXT);
        timelineText.addIdProperty();
        timelineText.addIntProperty(BABY_ID);
        timelineText.addStringProperty(UUID);
        timelineText.addStringProperty(USER_ID);
        timelineText.addStringProperty(ROLE);
        timelineText.addIntProperty(STATE);
        timelineText.addLongProperty(CREATE_TS);
        timelineText.addLongProperty(CHANGE_TS);
        timelineText.addIntProperty(IS_DELETE);
        timelineText.addIntProperty(IS_REMOTE_DELETE);

        timelineText.addStringProperty(TEXT);
    }

    private static void addTimelinePhoto(Schema schema) {
        Entity timelinePhoto = schema.addEntity(TIMELINE_PHOTO);
        timelinePhoto.addIdProperty();
        timelinePhoto.addIntProperty(BABY_ID);
        timelinePhoto.addStringProperty(UUID);
        timelinePhoto.addStringProperty(USER_ID);
        timelinePhoto.addStringProperty(ROLE);
        timelinePhoto.addIntProperty(STATE);
        timelinePhoto.addLongProperty(CREATE_TS);
        timelinePhoto.addLongProperty(CHANGE_TS);
        timelinePhoto.addIntProperty(IS_DELETE);
        timelinePhoto.addIntProperty(IS_REMOTE_DELETE);

        timelinePhoto.addStringProperty(TEXT);
        timelinePhoto.addStringProperty(THEME);
    }

    private static void addTimelinePhotoUrl(Schema schema) {
        Entity timelinePhotoUrl = schema.addEntity(TIMELINE_PHOTO_URL);
        timelinePhotoUrl.addIdProperty();
        timelinePhotoUrl.addIntProperty(BABY_ID);
        timelinePhotoUrl.addStringProperty(UUID);
        timelinePhotoUrl.addStringProperty(USER_ID);
        timelinePhotoUrl.addStringProperty(ROLE);
        timelinePhotoUrl.addIntProperty(STATE);
        timelinePhotoUrl.addLongProperty(CREATE_TS);
        timelinePhotoUrl.addLongProperty(CHANGE_TS);
        timelinePhotoUrl.addIntProperty(IS_DELETE);
        timelinePhotoUrl.addIntProperty(IS_REMOTE_DELETE);

        timelinePhotoUrl.addIntProperty(IS_REMOTE_EXIST);
        timelinePhotoUrl.addIntProperty(IS_LOCAL_EXIST);
        timelinePhotoUrl.addIntProperty(IS_SYNC_ERROR);
        timelinePhotoUrl.addIntProperty(IS_UPLOAD_ERROR);

        timelinePhotoUrl.addIntProperty(NUMBER);
        timelinePhotoUrl.addStringProperty(URL);
        timelinePhotoUrl.addStringProperty(LOCAL_THUMB_URL);
        timelinePhotoUrl.addStringProperty(LOCAL_URL);
    }

    private static void addTimelineAudio(Schema schema) {
        Entity timelineAudio = schema.addEntity(TIMELINE_AUDIO);
        timelineAudio.addIdProperty();
        timelineAudio.addIntProperty(BABY_ID);
        timelineAudio.addStringProperty(UUID);
        timelineAudio.addStringProperty(USER_ID);
        timelineAudio.addStringProperty(ROLE);
        timelineAudio.addIntProperty(STATE);
        timelineAudio.addLongProperty(CREATE_TS);
        timelineAudio.addLongProperty(CHANGE_TS);
        timelineAudio.addIntProperty(IS_DELETE);
    }

    private static void addTimelineAudioUrl(Schema schema) {
        Entity timelineAudioUrl = schema.addEntity(TIMELINE_AUDIO_URL);
        timelineAudioUrl.addIdProperty();
        timelineAudioUrl.addIntProperty(BABY_ID);
        timelineAudioUrl.addStringProperty(UUID);
        timelineAudioUrl.addStringProperty(USER_ID);
        timelineAudioUrl.addStringProperty(ROLE);
        timelineAudioUrl.addIntProperty(STATE);
        timelineAudioUrl.addLongProperty(CREATE_TS);
        timelineAudioUrl.addLongProperty(CHANGE_TS);
        timelineAudioUrl.addIntProperty(IS_DELETE);
        timelineAudioUrl.addIntProperty(IS_REMOTE_DELETE);

        timelineAudioUrl.addIntProperty(IS_REMOTE_EXIST);
        timelineAudioUrl.addIntProperty(IS_LOCAL_EXIST);
        timelineAudioUrl.addIntProperty(IS_SYNC_ERROR);
        timelineAudioUrl.addIntProperty(IS_UPLOAD_ERROR);

        timelineAudioUrl.addIntProperty(LENGTH);
        timelineAudioUrl.addStringProperty(URL);
        timelineAudioUrl.addStringProperty(LOCAL_URL);
    }

    private static void addTimelineVideo(Schema schema) {
        Entity timelineVideo = schema.addEntity(TIMELINE_VIDEO);
        timelineVideo.addIdProperty();
        timelineVideo.addIntProperty(BABY_ID);
        timelineVideo.addStringProperty(UUID);
        timelineVideo.addStringProperty(USER_ID);
        timelineVideo.addStringProperty(ROLE);
        timelineVideo.addIntProperty(STATE);
        timelineVideo.addLongProperty(CREATE_TS);
        timelineVideo.addLongProperty(CHANGE_TS);
        timelineVideo.addIntProperty(IS_DELETE);
    }

    private static void addTimelineVideoScreenshotUrl(Schema schema) {
        Entity timelineVideoScreenShotUrl = schema.addEntity(TIMELINE_VIDEO_SCREENSHOT_URL);
        timelineVideoScreenShotUrl.addIdProperty();
        timelineVideoScreenShotUrl.addIntProperty(BABY_ID);
        timelineVideoScreenShotUrl.addStringProperty(UUID);
        timelineVideoScreenShotUrl.addStringProperty(USER_ID);
        timelineVideoScreenShotUrl.addStringProperty(ROLE);
        timelineVideoScreenShotUrl.addIntProperty(STATE);
        timelineVideoScreenShotUrl.addLongProperty(CREATE_TS);
        timelineVideoScreenShotUrl.addLongProperty(CHANGE_TS);
        timelineVideoScreenShotUrl.addIntProperty(IS_DELETE);
        timelineVideoScreenShotUrl.addIntProperty(IS_REMOTE_DELETE);

        timelineVideoScreenShotUrl.addIntProperty(IS_REMOTE_EXIST);
        timelineVideoScreenShotUrl.addIntProperty(IS_LOCAL_EXIST);
        timelineVideoScreenShotUrl.addIntProperty(IS_SYNC_ERROR);
        timelineVideoScreenShotUrl.addIntProperty(IS_UPLOAD_ERROR);

        timelineVideoScreenShotUrl.addStringProperty(URL);
        timelineVideoScreenShotUrl.addStringProperty(LOCAL_URL);
    }

    private static void addTimelineVideoUrl(Schema schema) {
        Entity timelineVideoUrl = schema.addEntity(TIMELINE_VIDEO_URL);
        timelineVideoUrl.addIdProperty();
        timelineVideoUrl.addIntProperty(BABY_ID);
        timelineVideoUrl.addStringProperty(UUID);
        timelineVideoUrl.addStringProperty(USER_ID);
        timelineVideoUrl.addStringProperty(ROLE);
        timelineVideoUrl.addIntProperty(STATE);
        timelineVideoUrl.addLongProperty(CREATE_TS);
        timelineVideoUrl.addLongProperty(CHANGE_TS);
        timelineVideoUrl.addIntProperty(IS_DELETE);
        timelineVideoUrl.addIntProperty(IS_REMOTE_DELETE);

        timelineVideoUrl.addIntProperty(IS_REMOTE_EXIST);
        timelineVideoUrl.addIntProperty(IS_LOCAL_EXIST);
        timelineVideoUrl.addIntProperty(IS_SYNC_ERROR);
        timelineVideoUrl.addIntProperty(IS_UPLOAD_ERROR);

        timelineVideoUrl.addIntProperty(LENGTH);
        timelineVideoUrl.addStringProperty(URL);
        timelineVideoUrl.addStringProperty(LOCAL_URL);
    }

    private static void addTimelineMilestone(Schema schema) {
        Entity timelineMilestone = schema.addEntity(TIMELINE_MILESTONE);
        timelineMilestone.addIdProperty();
        timelineMilestone.addIntProperty(BABY_ID);
        timelineMilestone.addStringProperty(UUID);
        timelineMilestone.addStringProperty(USER_ID);
        timelineMilestone.addStringProperty(ROLE);
        timelineMilestone.addIntProperty(STATE);
        timelineMilestone.addLongProperty(CREATE_TS);
        timelineMilestone.addLongProperty(CHANGE_TS);
        timelineMilestone.addIntProperty(IS_DELETE);
        timelineMilestone.addIntProperty(IS_REMOTE_DELETE);

        timelineMilestone.addIntProperty(MILESTONE_ID);
        timelineMilestone.addStringProperty(MILESTONE);
    }

    private static void addTimelineDelete(Schema schema) {
        Entity timelineDelete = schema.addEntity(TIMELINE_DELETE);
        timelineDelete.addIdProperty();
        timelineDelete.addStringProperty(LOCAL_URL);
    }

    private static void addPublicPhotoTheme(Schema schema) {
        Entity photoTheme = schema.addEntity(PUBLIC_PHOTO_THEME);
        photoTheme.addIdProperty();
        photoTheme.addStringProperty(THEME);
    }

    private static void addPublicMilestone(Schema schema) {
        Entity photoTheme = schema.addEntity(PUBLIC_MILESTONE);
        photoTheme.addIdProperty();
        photoTheme.addIntProperty(TYPE);
        photoTheme.addIntProperty(MILESTONE_ID);
        photoTheme.addStringProperty(MILESTONE);
    }

    /*2015/11/2*/

    /*DISCOVER*/

    private static final String DISCOVER_SYNC_TIME = "DiscoverSyncTime";

    private static final String SYNC_TIME = "syncTime";

    private static void addDiscoverSyncTime(Schema schema) {
        Entity discover = schema.addEntity(DISCOVER_SYNC_TIME);
        discover.addIdProperty();
        discover.addStringProperty(USER_ID);
        discover.addLongProperty(SYNC_TIME);
    }

    /*2015/11/20*/

    private static final String DISCOVER_SAVE_COMMENT = "DiscoverSaveComment";
    private static final String DISCOVER_SAVE_LIKE = "DiscoverSaveLike";

    private static final String OPERATION_STATE = "operationState";
    private static final String IDENTITY = "identity";
    private static final String DIARY_ID = "diaryID";
    private static final String CONTENT = "content";
    private static final String USER_NICKNAME = "userNickname";
    private static final String USER_HEAD_URL = "userHeadUrl";
    private static final String REPLY_IDENTITY = "replyIdentity";
    private static final String REPLY_USER_ID = "replyUserID";
    private static final String REPLY_NICKNAME = "replyNickname";

    /* 2015-11-23 13:17 */
    private static final String COMMENT_TYPE = "commentType";

    /* 2015-11-24 13:17 */
    private static final String IS_NEW = "isNew";

    /* 2015-11-25 15:04 */
    private static final String FROM = "from";
    private static final String BELONG_USER_ID = "belongUserId";

    private static final String MEMBER_NAME = "memberName";
    private static final String REPLY_MEMBER_NAME = "replyMemberName";

    /* 2015-11-27 16:38 */
    private static final String IS_LOCAL_COMMENT = "isLocal";

    private static void addDiscoverSaveComment(Schema schema) {
        Entity comment = schema.addEntity(DISCOVER_SAVE_COMMENT);
        comment.addIdProperty();
        comment.addIntProperty(OPERATION_STATE);        // operationState
        comment.addStringProperty(IDENTITY);            // identity
        comment.addStringProperty(DIARY_ID);            // diaryID
        comment.addStringProperty(CONTENT);             // content
        comment.addStringProperty(USER_ID);             // userID
        comment.addStringProperty(USER_NICKNAME);       // userNickname
        comment.addStringProperty(USER_HEAD_URL);       // userHeadUrl
        comment.addStringProperty(REPLY_IDENTITY);      // replyIdentity
        comment.addStringProperty(REPLY_USER_ID);       // replyUserID
        comment.addStringProperty(REPLY_NICKNAME);      // replyNickname
        comment.addLongProperty(CREATE_TS);             // createTS
        comment.addIntProperty(COMMENT_TYPE);           // commentType
        comment.addBooleanProperty(IS_NEW);             // isnew
        comment.addIntProperty(FROM);                   // from
        comment.addStringProperty(BELONG_USER_ID);      // belongUserId
        comment.addStringProperty(MEMBER_NAME);         // memberName
        comment.addStringProperty(REPLY_MEMBER_NAME);   // replyMemberName
        comment.addBooleanProperty(IS_LOCAL_COMMENT);   // isLocal
    }

    /* 2015-11-23 */

//    private static void addDiscoverSaveLike(Schema schema) {
//        Entity comment = schema.addEntity(DISCOVER_SAVE_LIKE);
//        comment.addIdProperty();
//        comment.addIntProperty(OPERATION_STATE);    // operationState
//        comment.addStringProperty(IDENTITY);        // identity
//        comment.addStringProperty(DIARY_ID);        // diaryID
//        comment.addStringProperty(USER_ID);         // userID
//        comment.addStringProperty(USER_NICKNAME);   // userNickname
//        comment.addStringProperty(USER_HEAD_URL);   // userHeadUrl
//        comment.addLongProperty(CREATE_TS);         // createTS
//    }

    /* DISCOVER 2015-11-24 */

    private static final String DISCOVER = "Discover";
    private static final String BABY_NAME = "babyName";
    private static final String NICKNAME = "nickName";
    private static final String GROWTH_STAGE_ID = "growthStageID";
    private static final String AUDIO = "audio";
    private static final String DURATION = "duration";
    private static final String AUDIO_LOCAL_URL = "audioLocalUrl";
    private static final String VIDEO_LOCAL_URL = "videoLocalUrl";
    private static final String SCREEN_SHOT = "screenshot";
    private static final String VIDEO = "video";
    private static final String DIARY_NAME = "diaryName";
    private static final String BABY_HEAD_URL = "babyHeadUrl";
    private static final String IS_LOCAL = "isLocal";
    private static final String MEDIA_IS_LOCAL = "mediaIsLocal";
    private static final String DIARY_FROM = "diaryFrom"; // 1-DiaryBook, 2-DiaryMoment, 3-NewComment

    private static void addDiscover(Schema schema) {
        Entity discover = schema.addEntity(DISCOVER);
        discover.addIdProperty();
        discover.addIntProperty(TYPE);
        discover.addIntProperty(BABY_ID);
        discover.addStringProperty(DIARY_ID);
        discover.addStringProperty(DIARY_NAME);
        discover.addStringProperty(BABY_NAME);
        discover.addStringProperty(USER_ID);
        discover.addStringProperty(MEMBER_NAME);
        discover.addStringProperty(NICKNAME);
        discover.addStringProperty(USER_HEAD_URL);
        discover.addStringProperty(BABY_HEAD_URL);
        discover.addLongProperty(CREATE_TS);
        discover.addIntProperty(GROWTH_STAGE_ID);
        discover.addStringProperty(TEXT);
        discover.addStringProperty(THEME);
        discover.addStringProperty(AUDIO);
        discover.addIntProperty(DURATION);
        discover.addStringProperty(AUDIO_LOCAL_URL);
        discover.addStringProperty(VIDEO_LOCAL_URL);
        discover.addStringProperty(SCREEN_SHOT);
        discover.addStringProperty(VIDEO);
        discover.addStringProperty(MILESTONE);
        discover.addBooleanProperty(IS_LOCAL);
        discover.addIntProperty(DIARY_FROM);
        discover.addBooleanProperty(MEDIA_IS_LOCAL);
        discover.addBooleanProperty(IS_DELETE);
    }

    private static final String PHOTO = "DiscoverPhoto";
    private static final String DISCOVER_ID = "discoverID";

    private static void addDiscoverPhoto(Schema schema) {
        Entity discover = schema.addEntity(PHOTO);
        discover.addIdProperty();
        discover.addStringProperty(URL);
        discover.addStringProperty(DISCOVER_ID);
        discover.addBooleanProperty(IS_LOCAL);
    }
}
